<html>
<head><meta charset="utf-8"><title>There are many tests failed when i built rust from source · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/There.20are.20many.20tests.20failed.20when.20i.20built.20rust.20from.20source.html">There are many tests failed when i built rust from source</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="202924152"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/There%20are%20many%20tests%20failed%20when%20i%20built%20rust%20from%20source/near/202924152" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzx <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/There.20are.20many.20tests.20failed.20when.20i.20built.20rust.20from.20source.html#202924152">(Jul 05 2020 at 14:38)</a>:</h4>
<p>I want to build rust from source 1.44.1 on 7u.And I got a lot of test fails during my build time. Does it affect my rust normal working?<br>
When running </p>
<div class="codehilite"><pre><span></span><code>build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/testsuite-bb2a3783387d4876.
</code></pre></div>


<p>It has a lot of FAILED in test such as test build, test config test check and other.<br>
And also has failed in test net:<br>
And it shows  error like below:</p>
<div class="codehilite"><pre><span></span><code>---- net::tcp::tests::double_bind stdout ----
thread &#39;&lt;unnamed&gt;&#39; panicked at &#39;received error for `TcpListener::bind(&amp;addr)`: Address family not supported by protocol (os error 97)&#39;, src/libstd/net/tcp.rs:1293:29
</code></pre></div>


<p>And it also has below:<br>
 test [run-make] run-make-fulldeps/sysroot-crates-are-unstable ... FAILED.<br>
And it shows error like below:</p>
<div class="codehilite"><pre><span></span><code>stderr:
------------------------------------------
Traceback (most recent call last):
  File &quot;test.py&quot;, line 54, in &lt;module&gt;
    libs = get_all_libs(join(sysroot, &#39;lib/rustlib/{}/lib&#39;.format(os.environ[&#39;TARGET&#39;])))
  File &quot;test.py&quot;, line 49, in get_all_libs
    for f in listdir(dir_path)
FileNotFoundError: [Errno 2] No such file or directory: &#39;lib/rustlib/x86_64-unknown-linux-gnu/lib&#39;
make: *** [Makefile:2: all] Error 1
</code></pre></div>


<p>And it also has error on test client:<br>
failures:<br>
    client_all_features<br>
    client_all_targets<br>
    client_bin_lib_project<br>
    client_borrow_error<br>
    client_changing_workspace_lib_retains_diagnostics<br>
    client_dependency_typo_and_fix<br>
    client_features<br>
    client_find_all_refs_no_cfg_test<br>
    client_find_impls<br>
    client_highlight<br>
    client_hover<br>
    client_implicit_workspace_pick_up_lib_changes<br>
    client_infer_lib<br>
    client_init_with_configuration_camel_case<br>
    client_init_with_configuration_kebab_case<br>
    client_init_with_configuration_mixed_case<br>
    client_init_with_configuration_snake_case<br>
    client_lens_run<br>
    client_multiple_binaries<br>
    client_no_default_features<br>
    client_rename<br>
    client_test_complete_self_crate_name<br>
    client_test_infer_bin<br>
    client_test_infer_custom_bin<br>
    client_test_infer_lib<br>
    client_test_simple_workspace<br>
    client_use_statement_completion_doesnt_suggest_arguments<br>
    client_workspace_symbol.</p>
<p>Does it affect rust normal fucntion?<br>
How should i fix it?</p>



<a name="202924333"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/There%20are%20many%20tests%20failed%20when%20i%20built%20rust%20from%20source/near/202924333" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/There.20are.20many.20tests.20failed.20when.20i.20built.20rust.20from.20source.html#202924333">(Jul 05 2020 at 14:43)</a>:</h4>
<p>It would be helpful to see the (end of) the log -- the test names don't tell us much, but there should be a section of stderr/stdout outputs from each test at the end</p>



<a name="202925066"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/There%20are%20many%20tests%20failed%20when%20i%20built%20rust%20from%20source/near/202925066" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/There.20are.20many.20tests.20failed.20when.20i.20built.20rust.20from.20source.html#202925066">(Jul 05 2020 at 15:02)</a>:</h4>
<p>also the "header" - whatever is printed before the tests start. someone on Discord suggested these might be <code>rls</code> tests but I couldn't tell from the list</p>



<a name="202925075"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/There%20are%20many%20tests%20failed%20when%20i%20built%20rust%20from%20source/near/202925075" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/There.20are.20many.20tests.20failed.20when.20i.20built.20rust.20from.20source.html#202925075">(Jul 05 2020 at 15:03)</a>:</h4>
<p>they're definitely not <code>src/test</code> tests, because the output from those looks different</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>